package com.hl.web;

import com.hl.service.HotcourseService;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hotcourse")
public class Hotcourse {
    @Autowired
    private HotcourseService hotcourseService;
    @RequestMapping("/hotcourses")
    public GeneralResult hotcourses(){
        return GeneralResult.success(hotcourseService.hotCourses());
    }
}
